package com.lw.carmanage.mapper;

import com.lw.carmanage.pojo.Car;
import org.apache.ibatis.annotations.Select;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/4/4 15:26
 */
public interface CarMapper {

    void addCar(Car car);

    @Select("select * from car where id=#{id}")
    Car findById(Long id);

    @Select("select * from car where name=#{name}")
    Car findByName(String name);
}
